import request from '@/utils/request'

// 查询付款单详情列表
export function listPaymentDetail(query) {
    return request({
        url: '/finance/paymentDetail/list',
        method: 'get',
        params: query
    })
}

// 查询付款单详情详细
export function getPaymentDetail(id) {
    return request({
        url: '/finance/paymentDetail/' + id,
        method: 'get'
    })
}

// 新增付款单详情
export function addPaymentDetail(data) {
    return request({
        url: '/finance/paymentDetail',
        method: 'post',
        data: data
    })
}

// 修改付款单详情
export function updatePaymentDetail(data) {
    return request({
        url: '/finance/paymentDetail',
        method: 'put',
        data: data
    })
}

// 删除付款单详情
export function delPaymentDetail(id) {
    return request({
        url: '/finance/paymentDetail/' + id,
        method: 'delete'
    })
}
